package com.woniuxy.service.impl;

import com.woniuxy.dao.UserDao;
import com.woniuxy.service.UserService;

import java.util.List;
import java.util.Map;

/**
 * @author: zhouhongcheng
 * Date: 2022/1/19:15:43
 * Description:
 */
public class UserServiceImpl implements UserService {
    UserDao userDao;

    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }
    @Override
    public List<Map<String, String>> findAll() {
        return userDao.findAll();
    }

    @Override
    public boolean addUser() {
        return userDao.addUser() > 0;
    }

    @Override
    public boolean updateUser() {
        return userDao.updateUser() > 0;
    }

    @Override
    public boolean delUser() {
        return userDao.delUser() > 0;
    }
}
